﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudyDemo.Attributes
{
    internal class KeyAttribute : CommonValidateAttribute
    {
        public bool IsPrimaryKey { get; set; } = true;
        public override bool IsValidate(object value)
        {
            return IsPrimaryKey;
        }
    }
}
